{include file="public/header" /}

<body class="sy_bg">

    <!--main start-->
    <div class="lb_one lb_two">
        <div class="item">
            <ul id="lb_one" class="content-slider">
                {volist name="list" id="vo"}
                    <li>
                        <div class="img"><img src="{$vo.head_img}"></div>
                        <p class="p">
                            微信号：
                            <span class="rr">{$vo.wx_code}</span>
                        </p>
                        <p class="p">
                            星座：
                            <span class="rr">{$vo.star}</span>
                        </p>
                        <p class="p">
                            城市：
                            <span class="rr">{$vo.home_province}/{$vo.home_city}</span>
                        </p>
                        <div class="sy_three">
                            <div class="see li" data-uid="{$vo.id}">
                                <img src="__IMG__/img4.png">
                                <span>观察</span>
                            </div>
                            <div class="spe_beat li" data-uid="{$vo.id}">
                                <img src="__IMG__/img5.png">
                                <span>特别心动</span>
                            </div>
                            <div class="beat li" data-uid="{$vo.id}">
                                <img src="__IMG__/img6.png">
                                <span>心动</span>
                            </div>
                        </div>
                    </li>
                {/volist}


            </ul>
        </div>
    </div>
    <!--main end-->
    
    <!--menu start-->
    {include file="public/footer" /}
    <!--menu end-->
    
    <script src="__JS__/lightslider.js"></script>
	<script type="text/javascript">
        $(function(){
            $("#lb_one").lightSlider({item:1,slideMove:1,loop:true,auto:true,mode:'slide',pause:4000,slideMargin:0});
        })
        $('.see').click(function () {
            var uid = $(this).data('uid');
            location.href = "{:url('index/User/info')}?uid="+uid;
        })
        $('.spe_beat').click(function () {
            var uid = $(this).data('uid');
            $.post("{:url('index/User/beat')}", {'uid':uid,'is_spe':1}, function (res) {
                if (res.code == 1) {
                    layer.msg(res.msg, {time: 1000, icon: 1});
                    location.href = "{:url('index/User/HeartList')}?me=1";
                } else {
                    layer.msg(res.msg, {time: 1000, icon: 2});
                }
            });
        })
        $('.beat').click(function () {
            var uid = $(this).data('uid');
            $.post("{:url('index/User/beat')}", {'uid':uid}, function (res) {
                if (res.code == 1) {
                    layer.msg(res.msg, {time: 1000, icon: 1});
                    location.href = "{:url('index/User/HeartList')}?me=1";
                } else {
                    layer.msg(res.msg, {time: 1000, icon: 2});
                }
            });
        })
    </script>

</body>
</html>
